import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission


// 引入全局 uview 框架
import uView from '@/uview-ui'
Vue.use(uView)


// APP需要配置与流程相关表单的页面
// #ifdef APP-PLUS
import test from "@/pages/py/test.vue"
Vue.component("test", test)
// #endif


// 引入全局秋云ucharts
// import QiunDataCharts from "@/components/qiun-data-charts/qiun-data-charts/qiun-data-charts"
// Vue.component("QiunDataCharts",QiunDataCharts)

// 导入若依常用工具
import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi";
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.handleTree = handleTree

// 引入字典
import { getDicts } from "@/api/system/dict/data"
Vue.prototype.getDicts = getDicts

Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
